Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose test-only setup fn #19

Merged
merged 17 commits into from
Feb 3, 2025
Merged

expose test-only setup fn #19

merged 17 commits into from
Feb 3, 2025

Conversation

0xLendlord
Copy link
Contributor

No description provided.

@0xLendlord 0xLendlord force-pushed the expose-test-only-fns branch from a198528 to ee4f962 Compare July 23, 2024 09:04
@@ -382,6 +382,18 @@ module suilend::lending_market {
fulfill_liquidity_request(lending_market, reserve_array_index, liquidity_request, ctx)
}

// Compount interest for reserve of type T
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: spelling error

clock: &Clock,
) {
let reserve = vector::borrow_mut(&mut lending_market.reserves, reserve_array_index);
assert!(reserve::coin_type(reserve) == type_name::get<T>(), EWrongType);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont need type/dont need this check i think.

@@ -382,6 +382,18 @@ module suilend::lending_market {
fulfill_liquidity_request(lending_market, reserve_array_index, liquidity_request, ctx)
}

// Compount interest for reserve of type T
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@@ -741,7 +753,7 @@ module suilend::lending_market {
);
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove whitespace? linter acting weird?

@@ -382,6 +382,18 @@ module suilend::lending_market {
fulfill_liquidity_request(lending_market, reserve_array_index, liquidity_request, ctx)
}

// Compount interest for reserve of type T
public fun compound_interest<P, T>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need type T here

@0xripleys 0xripleys merged commit 53b62a0 into devel Feb 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants